<?php
namespace App\Models;
use App\Models\Simple\XMLModel;

/*
 * Mock travel destination data.
 * Note that we don't have to extend CodeIgniter's model for now
 */

class Mc extends CSVModel{
    protected $origin = WRITEPATH . 'data/dcData.xml';
    protected $keyField = 'id';
    protected $validationRules = [
            'name' => 'required|min_length[2]|max_length[255]',
            'birth' => 'required',
            'height' => 'required',
            'weight' => 'required',
            'country' => 'required',
            'link' => 'required',
            'image' => 'required',
        ];
}